package cn.thirdquestion;

public class Test {
    public static void main(String[] args) {

        Instrument<String> instrument = new Pinao<String>();
        instrument.setStr("钢琴在演奏");
        String AAA=instrument.getStr();
        instrument.play(AAA);

        Instrument<String> instrument1 = new Violin<String>();
        instrument1.setStr("小提琴在演奏");
        String NNN = instrument1.getStr();
        instrument1.play(NNN);
    }
}
